<!doctype html>
<html lang="utf-8">
<head>
    <title>测试调用</title>
    <link rel="shortcut icon" href="favicon.png">
    <script src="js/function.js"></script>
</head>
<body>

</body>
</html>
<script>
    // 异步调用 golang 方法
    JsToGo(1, 2, 3);
    // 调用 golang 方法并获取返回值
    const syncRun = async () => {
        var res = await JsToGoGetRet()
        alert(res)
    };
    syncRun()
</script>